package com.gitee.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gitee.bo.AdminRoleBo;
import com.gitee.pojo.AdminRole;

public interface IAdminRoleService extends IService<AdminRole> {

    /**
     * 根据后台用户id删除用户关联角色
     * @param adminId
     * @return
     */
    Boolean deleteByAdminId(Integer adminId);

    /**
     * 根据后台用户id更新用户角色
     * @param adminId
     * @return
     */
    Boolean updateByAdminId(Integer adminId, AdminRoleBo adminRoleBo);

    /**
     * 根据后台用户id删除用户关联角色
     * @param adminIds
     * @return
     */
    Boolean deleteByAdminIds(Integer[] adminIds);

}
